package com.chenjun.core.service.sys;

import java.util.List;
import java.util.Map;

import com.chenjun.common.bean.Pagination;
import com.chenjun.common.model.DataGridModel;
import com.chenjun.core.dao.generator.entity.SysRoleResource;
import com.chenjun.core.vo.sys.RoleResourceVo;

public interface SysRoleResourceService {

	public SysRoleResource get(String id);

	public int create(SysRoleResource record);

	public int delete(String id);
	
	public int deleteByCondition(Map<String,String> params);

	public int update(SysRoleResource record);

	public int createOrUpdate(SysRoleResource record);

	public int doCountByCondition(DataGridModel param);

	public List<SysRoleResource> doListByCondition(DataGridModel param);

	public Pagination doPagination(DataGridModel param);
	
	/**
	 * 
	 * 批量新增和删除列表
	 * @param bean
	 * @return
	 * int
	 */
	public int batchCreateOrUpdate(RoleResourceVo bean);
}
